package com.sqj;

public enum CarStrategy {
    BMW(new BmwCar()),
    BENZ(new BenzCar()),
    AUDI(new AudiCar());

    private ICarCompany carCompany;

    CarStrategy(ICarCompany carCompany){
        this.carCompany=carCompany;
    }

    public ICarCompany getCar(){
        return carCompany;
    }
}
